﻿namespace DbFrame.DbContext.PostgreSql.Achieve
{
    using System.Data;
    using DbFrame.Core.Achieve;
    using Npgsql;

    public class PostgreSqlAdoAchieve : AdoAchieve
    {

        public PostgreSqlAdoAchieve(string ConnectionString) 
            : base(ConnectionString)
        {
            
        }


        /// <summary>
        /// 数据库 连接对象
        /// </summary>
        /// <returns></returns>
        public override IDbConnection GetDbConnection()
        {
            return new NpgsqlConnection(this._ConnectionString);
        }


    }
}
